package io.coderyeah.pet.service;

import io.coderyeah.basic.Result;
import io.coderyeah.pet.domain.Pet;
import com.baomidou.mybatisplus.extension.service.IService;
import io.coderyeah.pet.dto.PetDTO;

import java.util.List;

/**
* @author coderyeah
* @description 针对表【t_pet】的数据库操作Service
* @createDate 2022-09-23 20:07:49
*/
public interface PetService extends IService<Pet> {

    Result getAllPets(PetDTO petDTO);

    Result editType(PetDTO petDTO);

    Result getPetTypeTree();

    void saveOrModify(Pet pet);

    Result onsale(List<Long> ids);

    Result offsale(List<Long> ids);

    Result getPetById(Long id);
}
